package com.tjbklx1.thread.chap05.demo01;

public class Test {
	
	public static void main(String[] args) {
		Table table = new Table(3);
		new ProducerThread("ProducerThread-1", 20000, table).start();
		new ProducerThread("ProducerThread-2", 20000, table).start();
		new ProducerThread("ProducerThread-3", 20000, table).start();
		
		new ConsumerThread("ConsumerThread-1", 20000, table).start();
		new ConsumerThread("ConsumerThread-2", 20000, table).start();
		new ConsumerThread("ConsumerThread-3", 20000, table).start();
	}
}
